package aop.test.proxy.autoproxy;

import cn.stimd.spring.aop.Pointcut;
import cn.stimd.spring.aop.support.AbstractGenericPointcutAdvisor;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
public class LoggerAdvisor extends AbstractGenericPointcutAdvisor {
    private Pointcut pointcut = new LoggerPointcut();

    public LoggerAdvisor() {
        //设置增强器为LoggerInterceptor
        setAdvice(new LoggerInterceptor());
    }

    @Override
    public Pointcut getPointcut() {
        return this.pointcut;
    }
}
